package com.gugee.ins.common.dal.service.statistics;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gugee.ins.common.model.mysql.statistics.InsStBloggerCfsAvg;
import com.gugee.ins.data.common.msg.InsMBIdenticalLevelMessage;

import java.util.List;

/**
 *
 */
public interface InsStBloggerCfsAvgDao extends IService<InsStBloggerCfsAvg> {
    InsStBloggerCfsAvg getByCategoryAndFollowerSize(String category, long sizeId);

    List<InsMBIdenticalLevelMessage> getInsMBIdenticalLevelMessageList(int start,int row);

    /**
     * 更新同量级同分类平均值
     * @param category
     * @param followerSize
     * @param now
     */
    void updateStBloggerCfsAvg(String category, int followerSize,long now);

    /**
     * 更新同量级同分类广告帖传播率、点赞率、评论率平均值
     * @param category
     * @param followerSize
     * @param limitTime
     * @param now
     */
    void updateStBloggerCfsAdAvg(String category, int followerSize,long limitTime,long now);

}
